export default {
  /*
  新增文章
  title	标题
  body	内容
  tag	标签，可以传多个
  category	分类：学习天地
  author	作者
  coverPic	封面的图片，通过图片上传接口，长传后获取的url填在这里
  * */
  'POST /apiend/admin/article/add': (req, res) => {
    res.status(200).send({
      "code": "SUCCESS",
      "msg": null,
      "data": {
        "createTime": null,
        "updateTime": null,
        "createBy": null,
        "updateBy": null,
        "articleId": 16,
        "title": "标题33",
        "body": "内容33",
        "coverPic": "http://xk.valuechain.group/apiend/showImage/images/20181014/dp.0f7439e6.png",
        "summary": "文章描述",
        "author": "作者司马迁",
        "categorys": ["阅读时光"],
        "tags": ["标签3", "标签2"],
        "favorCount": null,
        "clickCount": null,
        "commentCount": null
      }
    })
  },
  // apiend/admin/article/count
  'POST /apiend/admin/article/count': (req, res) => {
    res.status(200).send({
      "code": "SUCCESS",
      "msg": null,
      "data": 2,
    })
  },
  /*

   文章列表
  tag	搜索条件标签
  category	搜索条件类别
  title	搜索条件标题
*/
  'POST /apiend/admin/article/list': (req, res) => {
    res.status(200).send({
        "code": "SUCCESS",
        "msg": null,
        "data": [{
          "createTime": null,
          "updateTime": null,
          "createBy": null,
          "updateBy": null,
          "articleId": 16,
          "title": "标题33",
          "body": "内容33",
          "coverPic": "http://xk.valuechain.group/apiend/showImage/images/20181014/dp.0f7439e6.png",
          "summary": "qwqe",
          "author": "作者司马迁",
          "categorys": ["阅读时光"],
          "tags": ["标签3", "标签2"],
          "favorCount": null,
          "clickCount": null,
          "state":"NORMAL",
          "commentCount": null
        }, {
          "createTime": null,
          "updateTime": null,
          "createBy": null,
          "updateBy": null,
          "articleId": 17,
          "title": "标题44",
          "body": "内容44",
          "state":"NORMAL",
          "coverPic": "http://xk.valuechain.group/apiend/showImage/images/20181014/dp.0f7439e6.png",
          "summary": "qweqwe",
          "author": "作者司马迁2",
          "categorys": ["阅读时光"],
          "tags": ["标签3", "标签2"],
          "favorCount": null,
          "clickCount": null,
          "commentCount": null
        }]
      }
    );
  },
  /*文章详情*/
  "GET /apiend/admin/article/find/([0-9]*)": (req, res) => {
    res.status(200).send({
      "code": "SUCCESS",
      "msg": null,
      "data": {
        "createTime": null,
        "updateTime": null,
        "createBy": null,
        "updateBy": null,
        "articleId": 16,
        "title": "标题33",
        "body": "内容33",
        "coverPic": "http://xk.valuechain.group/apiend/showImage/images/20181014/dp.0f7439e6.png",
        "summary": "文章描述",
        "author": "作者司马迁",
        "categorys": ["阅读时光"],
        "tags": ["标签3", "标签2"],
        "favorCount": null,
        "clickCount": null,
        "commentCount": null
      }
    })
  },
  /*删除文章*/
  'GET /apiend/admin/article/delete/([0-9]*)': (req, res) => {
    res.status(200).send({
      "code": "SUCCESS",
      "msg": null,
      "data": {
        "createTime": null,
        "updateTime": "2018-12-02 21:12:15",
        "createBy": null,
        "updateBy": null,
        "articleId": 12,
        "title": "标题44",
        "body": "内容44",
        "coverPic": "/showImage/8608370009@baby",
        "summary": "文章描述",
        "author": "作者司马迁3",
        "categorys": ["阅读时光"],
        "tags": ["标签3", "标签2"],
        "favorCount": null,
        "clickCount": null,
        "commentCount": null,
        "state": null,
        "delete": true
      }
    })
  },


}
